C program to print vowels in a string - C Program to calculate frequency of vowels in a String
Learn C - C tutorial - C Program to calculate frequency of vowels in a string - C examples - C programs
C program to print vowels in a string
- C program to count number of vowels in a string For example, In the string "C programming" there are three vowels 'o', 'a' and 'i'.
- In the program both lower and upper case are considered i.e 'a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O' and 'U'.
- We undergoes checking every character in the input string, if it's a vowel then counter is incremented by one, consonants and others characters are ignored.